package com.ruoyi.project.gxgw_modules.discountManager.vo;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.gxgw_modules.discountManager.domain.Yhq;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class YhqVO extends Yhq {
    /**
     * 带有所属类型的优惠券
     *
     * @author zhy
     * @date 2019-01-20
     */
    @Excel(name = "优惠类型名称")
    private String yhqTypeName;

    private Date usedTime;

    public String getYhqTypeName() {
        return yhqTypeName;
    }

    public void setYhqTypeName(String yhqTypeName) {
        this.yhqTypeName = yhqTypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("yhqId", getYhqId())
                .append("yhqType", getYhqType())
                .append("yhqTypeName", getYhqTypeName())
                .append("yhqAmount", getYhqAmount())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("usedTime", getUsedTime())
                .append("yhqState", getYhqState())
                .append("yhqDiscount", getYhqDiscount())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
